package com.bwie.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bwie.poi.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: lrz
 * @Date: 2024/10/21 08:52
 * @Description:
 **/
@Data
@TableName(value = "t_shop")
public class Shop implements Serializable {
    @Excel(name = "ID")
    @TableId(type = IdType.AUTO)
    private Integer id;
    @Excel(name = "商品名称")
    private String name;
    @Excel(name = "商品单价")
    private Double price;
    @Excel(name = "商品库存")
    private Integer count;
    @Excel(name = "商品状态",readConverterExp = "1=已上架,2=已下架")
    private Integer typeId;
    private String img;
    @Excel(name = "进货时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date time;
}
